/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2019-2019.
 * Description: add uart rx switch
 * Author: zhangwen
 * Create: 2019-09-10
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */
#ifndef _UART_RX_SWITCH_H_
#define _UART_RX_SWITCH_H_

#ifdef CONFIG_SERIAL_AMBA_PL011_CONSOLE
extern struct uart_port *serialpl011_get_console_port(void);
#endif

#ifdef CONFIG_SERIAL_8250_CONSOLE
extern struct uart_port *serial8250_get_console_port(void);
#endif

#ifdef CONFIG_SERIAL_STM32_CONSOLE
extern struct uart_port *serialstm32_get_console_port(void);
#endif

extern void console_uart_insert_char(struct uart_port *port, unsigned int status,
		unsigned int overrun, unsigned int ch, unsigned int flag);

#endif /* _UART_RX_SWITCH_H_ */
